package com.schoolET.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: lin
 * @data: 2024/5/29
 * 管理员登录VO
 */
@Data
@ApiModel(value = "AdminVO对象", description = "管理员登录")
public class AdminLoginVO {

    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String account;

    @NotNull(message = "密码不能为空")
    @Length(min = 6,max = 11,message = "密码必须在6-11位")
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码",required = true)
    private String captcha;
}
